package com.itheima.ssm.utils;

import com.alibaba.druid.support.json.JSONUtils;
import org.springframework.security.crypto.bcrypt.BCryptPasswordEncoder;

/**
 * Description:heima_ssm
 * Created by admin  on 2020/3/5  10:39
 *
 * 密码加密
 */
public class BCryptPasswordEncoderUtils {

    private static BCryptPasswordEncoder bCryptPasswordEncoder = new BCryptPasswordEncoder();

    public static String encodePassword(String password){
        return bCryptPasswordEncoder.encode(password);
    }

}
